package com.rayo.accesscontrollercopy.model.db.dao;


import com.rayo.accesscontrollercopy.model.db.bean.OperatorData;

import java.util.List;

/**
 * Created by yanghaojie on 16/7/27.
 */
public interface OperatorDao {
    List<OperatorData> findAll();

    List<OperatorData> findByLoginAndPwd(String login, String pwd);

    List<OperatorData> findByLoginAndPwd(String login);

    OperatorData findByOperid(int id);

    void addAll(List<OperatorData> operatorData);

    void addOperator(OperatorData operatorData);

    void updateAll(List<OperatorData> operatorData);

    void updateOperator(OperatorData operatorData);

    void deleteAll();

    void deleteOperator(OperatorData operatorData);

    void deleteByOperId(int operId);
}
